#!/usr/bin/env zsh
[[ -v HOMEBREW_PREFIX ]] || export HOMEBREW_PREFIX="/opt/homebrew"
export PATH="${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/stream/bin"
GNU_BIN=${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin
GNU_SED_BIN=${HOMEBREW_PREFIX}/opt/gnu-sed/libexec/gnubin
LLVM_BIN=${HOMEBREW_PREFIX}/opt/llvm/bin

LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++"

export LS_COLORS='di=1;32'

export C_INCLUDE_PATH=/usr/local/include
export LIBRARY_PATH=/usr/local/lib
export CPLUS_INCLUDE_PATH=/usr/local/include:$CPLUS_INCLUDE_PATH
export DYLD_LIBRARY_PATH=/Users/stream/codes/commando/tree-sitter-java/build

export JDK_INCLUDE="/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/include;/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/include/darwin"
export JLI_SO="/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/jre/lib/jli"

export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"

export CARGO_HOME="/Users/stream/.cargo"

export CHEAT_CONFIG_PATH="~/.dotfiles/config/cheat/conf.yml"
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK

export PATH=$GNU_BIN:$GNU_SED_BIN:$LLVM_BIN:$PATH:$GNU_BIN
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"

# maven version in my company macbook
export PATH=/usr/local/opt/maven@3.5/bin:$PATH

# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"

# You may need to manually set your language environment
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8

export TERM=screen-256color

export GOPRIVATE=gitlab.alipay-inc.com,code.alipay.com,rsc.io/private
export GOPROXY=https://goproxy.cn,direct
#
export CHEAT_USE_FZF=true

# User configuration
alias proxy='export https_proxy=http://127.0.0.1:8118;export http_proxy=http://127.0.0.1:8118'
alias unproxy='unset https_proxy; unset http_proxy'
alias no_proxy='export NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.64.0/24'
#
alias ls='ls --color'
alias ll='ls --color'
alias cat='bat'

#alias kc="kubectl"
alias local-ip="ipconfig getifaddr en0"
alias lgit="lazygit"

alias chrome="open -a \"Google Chrome\" $@"
alias vim="nvim"
alias aria2c="aria2c --conf-path='/Users/stream/.aria2.conf' -D"

loginName=`id -un`

export PATH="$PATH:/Users/stream/.foundry/bin"
